package com.bjsxy.user;
/**反射*/
public class Students {
    public String studentName;
    private int age;
    public Students(){}

    public Students(String studentName, int age) {
        this.studentName = studentName;
        this.age = age;
    }

    public Students(String studentName) {
        this.studentName = studentName;
    }
    //注意这是私有
   private Students(int age) {
        this.age = age;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
    private void eat(){
        System.out.println("吃。。。。");
    }
}
